import { lazy } from "react";

let routes = [
    {
        path: "/",
        redirect:"/zy/sy"
    },
    {
        path: "/zy",
        component: lazy(() => import("../views/Home")),
        children: [
            {
                path: "/zy/sy",
                component: lazy(() => import("../views/home/Page")),
            },
            {
                path: "/zy/fl",
                component: lazy(() => import("../views/home/Classify")),
            },
            {
                path: "/zy/gwc",
                component: lazy(() => import("../views/home/ShopCar")),
            },
            {
                path: "/zy/my",
                component: lazy(() => import("../views/home/My")),
            }
        ]
       
    },
    {
        path: "/dl",
        component: lazy(() => import("../views/Login")),
    },
    {
        path: "/xq/:id",
        component: lazy(() => import("../views/Details")),
    }
]

export default routes